package com.qf.fmall.shopcart.mapper;

import com.qf.fmall.shopcart.entity.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.fmall.shopcart.vo.ShopcartListResponseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author djl
 * @since 2024-04-28
 */
@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    List<ShopcartListResponseVo> selectCartInfoByUserId(@Param("userid") Integer userid );

    void updateBySql(@Param("cartid") Integer cartid,@Param("number") Integer number);

    List<ShopcartListResponseVo> listbycids(Integer[] cidArr);

    List<ShopcartListResponseVo> listbycidsWithString(@Param("cidArr") String cidArr);
}
